package com.traffic.collect.controller;

import com.traffic.collect.common.Response;
import com.traffic.collect.service.ICollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/collect")
public class CollectController {
    @Autowired
    private ICollectService collectService;

    @PostMapping
    public Response saveStudent(@RequestBody Map map) {
        collectService.doCollect();
        return Response.ok();
    }
}
